<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var a = ['1','5','8']
        var b = a.map(Number)
        console.log(b)
        var c = b.map(Boolean)
    </script>
</head>
<body>
    
</body>
</html>